StoreKeeper\WooCommerce\B2C\Models\AbstractModel B

Total Complexity 81
Dependencies 13
Dependents 5
Total lines 428
Lines of code 302
Logical lines of code 148
Comment lines 5
Methods 31
Properties 0

Methods 31

Method Rating Maintainability Complexity Lines of code
validateData()
A
50 12 28
create()
A
49 9 29
findBy()
S
54 6 20
upsert()
S
55 5 21
prepareData()
S
62 5 11
update()
S
55 4 19
ensureAffectedRows()
S
64 5 9
fetchSingleRowForQuery()
S
57 3 17
count()
S
58 3 15
getValidForeignFieldKey()
S
62 3 11
delete()
S
61 2 13
getSelectHelper()
S
66 2 9
querySql()
S
68 2 7
getWpPrefix()
S
74 2 4
checkTableEngineInnoDB()
S
73 2 5
getTableForeignKey()
S
62 1 13
isTableEngineInnoDB()
S
79 1 3
purge()
S
81 1 3
prepareQuery()
S
77 1 4
getDeleteHelper()
S
75 1 5
getUpdateHelper()
S
75 1 5
getInsertHelper()
S
75 1 5
read()
S
66 1 8
getTableName()
S
79 1 3
prepareInsertData()
S
78 1 3
getTableEngine()
S
67 1 8
setTableEngineToInnoDB()
S
67 1 8
prepareUpdateData()
S
78 1 3
hasTable()
S
72 1 5
get()
S
76 1 4
foreignKeyExists()
S
74 1 4